package com.tinem.platform.service.graphql;

import com.baidu.fsg.uid.annotation.EnableCacheUid;
import com.tinem.platform.module.starter.jpa.annotation.EnableJpa;
import com.tinem.platform.module.starter.sdk.annotation.EnableMessage;
import com.tinem.platform.module.starter.web.annotation.EnableGatewayContext;
import com.tinem.platform.module.starter.web.annotation.EnableWeb;
import com.tinem.platform.service.graphql.config.GraphQLProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

@EnableWeb
@EnableJpa
@EnableMessage
@EnableCacheUid
@EnableGatewayContext
@EnableDiscoveryClient
@SpringBootApplication
public class GraphqlServiceApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(GraphqlServiceApplication.class, args);
        GraphQLProvider provider = applicationContext.getBean(GraphQLProvider.class);
        System.out.println(provider);
    }
}
